package com.heima.string.string;

public class StringDemo07 {
    public static void main(String[] args) {
        /**
         * 敏感词替换
         * String replace(CharSequence oldValue, CharSequence newValue) 替换
         */
        String str = "TMD, MTD";
        System.out.println(str.replace("TMD", "***"));
    }
}
